package com.hzjy.api.beans;

import com.hzjy.common.annotation.Excel;
import com.hzjy.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 常见问题对象 sys_common_problem
 * 
 * @author hzjy
 * @date 2020-09-05
 */
public class SysCommonProblem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 问题 */
    @Excel(name = "问题")
    private String problem;

    /** 回答 */
    @Excel(name = "回答")
    private String answer;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProblem(String problem) 
    {
        this.problem = problem;
    }

    public String getProblem() 
    {
        return problem;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("problem", getProblem())
            .append("answer", getAnswer())
            .toString();
    }

    public SysCommonProblem() {
    }

    public SysCommonProblem(Long id, String problem, String answer) {
        this.id = id;
        this.problem = problem;
        this.answer = answer;
    }
}
